a=829231; b=1000000; k=1000; n=500; m=500;